package org.dromara.book.domain.bo;

import org.dromara.book.domain.SzlyBaseLocation;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 馆藏地业务对象 szly_base_location
 *
 * @author LionLi
 * @date 2024-03-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SzlyBaseLocation.class, reverseConvertGenerate = false)
public class SzlyBaseLocationBo extends BaseEntity {

    /**
     * 参数主键
     */
    @NotNull(message = "参数主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 藏馆名称
     */
    @NotBlank(message = "藏馆名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 藏馆编号
     */
    @NotBlank(message = "藏馆编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
